package com.haoyeteng.sxbd.modular.business.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.haoyeteng.sxbd.modular.business.model.Category;
import com.haoyeteng.sxbd.modular.business.dao.CategoryMapper;
import com.haoyeteng.sxbd.modular.business.service.ICategoryService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新闻分类表 服务实现类
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-11
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

    /**
     * 查询列表
     * @param page
     * @param categoryName
     * @return
     */
    @Override
    public List<Map<String, Object>> selectCategories(Page<Category> page, String categoryName){
        return this.baseMapper.selectCategories(page,categoryName);
    }
}
